package top.tagao.m03_beHavioralPatterns.b_10_comand.commands;

import top.tagao.m03_beHavioralPatterns.b_10_comand.editor.Editor;

/**
 * @author Viktor_Liu
 * @Date 2022/8/14 13:08
 */

public class CopyCommand extends Command {

    public CopyCommand(Editor editor) {
        super(editor);
    }

    @Override
    public boolean execute() {
        editor.clipboard = editor.textField.getSelectedText();
        return false;
    }
}